FROM openjdk:8-jdk-alpine
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN echo 'Asia/Shanghai' > /etc/timezone
#RUN yum -y install fontconfig
#RUN fc-cache --force
RUN set -xe && apk --no-cache add ttf-dejavu fontconfig
VOLUME /tmp
ADD target/cys-platform-api-1.0.jar app.jar
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom -Dspring.profiles.active=prd","-jar","/app.jar"]